package UseString.demo01;

public class TestReplace {
    public static void main(String[] args) {
        String word = "你个SB,玩你妹";
        String[] arr = {"SB","玩你妹"};

        for (int i = 0; i < arr.length; i++) {
            word = word.replace(arr[i],"**");

        }
        System.out.println(word);
    }
}
